#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	ifstream file("NUMBER");
	//ifstream file("BIGTXT");
	string s;
	int count = 0;

	while (file>>s) {
		++ count;
	}

	if (!file.eof()) {
		file.clear();
		std::cerr<<"file read error"<<std::endl;
	}

	file.close();

	std::cout<<"words:"<<count<<std::endl;
}
